﻿@model WeProjects.Models.RegisterModel
@{
    ViewBag.Title = "Register";
}
<style type="text/css">
    .row div {
        min-height:32px;
    }
        .row div label {
            height:25px;
            vertical-align:-1px;
        }
</style>

<h2>创建一个新账户</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

    <fieldset>
        <div class="row">
            <div class="col-xs-3 col-md-2 text-right">
                @Html.Label("用户名")
            </div>
            <div class="col-xs-9 col-md-10">
                @Html.TextBoxFor(m => m.UserName)
            </div>
            <div class="col-xs-3 col-md-2 text-right">
                @Html.Label("密　码")
            </div>
            <div class="col-xs-9 col-md-10">
                @Html.PasswordFor(m => m.Password)
            </div>
            <div class="col-xs-3 col-md-2 text-right">
                @Html.Label("确认密码")
            </div>
            <div class="col-xs-9 col-md-10">
                @Html.PasswordFor(m => m.ConfirmPassword)
            </div>
            <div class="col-xs-3 col-md-2">
            </div>
            <div class="col-xs-9 col-md-10">
                <input type="submit" value="注册" class="btn btn-success" />
            </div>
        </div>
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
